export default {
    before() {},
    after(data) {
        if (data.packageName === 'android.widget') {
            switch (data.className) {
                case 'FrameLayout':
                case 'LinearLayout':
                case 'RelativeLayout':
                case 'ScrollView':
                case 'ImageView':
                case 'CheckBox':
                case 'EditText':
                case 'HorizontalScrollView':
                case 'ListView':
                case 'ImageButton':
                case 'Button':
                case 'Switch':
                case 'TextView':
                case 'Toast':
                    data.riskLevel = 1
                    data.desc = '自行选择ohos系统控件替换'
                    break

                case 'GridView':
                    data.riskLevel = 3
                    data.desc = '无法替换，自行实现'
                    break
            }
        }
    }
}